package com.deyuanyun.pic.pipe.domain.custom;

import com.deyuanyun.pic.common.util.ConvertUtil;
import com.deyuanyun.pic.pipe.domain.PicPipeTrackPoint;
import com.deyuanyun.pic.pipe.domain.exceldomain.TrackPointExcelExportVO;

/**
 * Created by xu on 2015/12/31.
 * 定标点 跟踪点
 */
public class CustomPicPipeTrackPoint extends PicPipeTrackPoint {
    private String lineName;
    private String segmentName;

    public String getLineName() {
        return lineName;
    }

    public void setLineName(String lineName) {
        this.lineName = lineName;
    }

    public String getSegmentName() {
        return segmentName;
    }

    public void setSegmentName(String segmentName) {
        this.segmentName = segmentName;
    }

    public TrackPointExcelExportVO toExportVO() throws Exception{
        TrackPointExcelExportVO trackPointExcelExportVO=new TrackPointExcelExportVO();
        ConvertUtil.coverWithSpring(this,trackPointExcelExportVO);
        if (this.getRecordtime()!=null){
            trackPointExcelExportVO.setRecordtime(com.deyuanyun.pic.common.util.DateUtil.DateToStringYMd(this.getRecordtime()));
        }
        return trackPointExcelExportVO;
    }

}
